<template>
	<view v-if="!apply" class="page_content" :style="{backgroundImage: 'url(' + urlDomain + 'crmebimage/presets/sortrule_bg.png' + ')'}">
		<view class="btnH" @click="goToApply()"></view>
	</view>
	<view v-else class="page_content" :style="{backgroundImage: 'url(' + urlDomain + 'crmebimage/presets/sortrule_bg0.png' + ')'}"></view>
	
</template>

<script>
	export default {
		data() {
			return {
				urlDomain: this.$Cache.get("imgHost"),
				merchantData: this.$Cache.get('applyInfo')?JSON.parse(this.$Cache.get('applyInfo')):[],
				apply: false
			}
		},
		onLoad() {
			if(this.merchantData.type!=null){
				this.apply = true;
			}
		},
		methods: {
			goToApply(){
				uni.navigateTo({
					url: '/pages/users/settled/index'
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.page_content{
		background-size: 100% 100%;
		background-repeat: no-repeat;
		height: 173vh;
		
		.btnH{
			height: 50px;
			position: relative;
			top: 68vh;
		}
	}
	
</style>